package com.jinyi.wwdeng.autodialer.http

object HttpApi {

    /**
     * 域名
     */
    val HOST = "http://110.238.74.231"

    /**
     * 登录
     *
     * 请求参数: {
     * 	"loginName":"xxxxx",
     * 	"passWord":"yyyyyy"
     * }
     */
    val API_LOGIN = "${HOST}/front/v1/dun/userLogin"

    /**
     * 获取号码
     *
     * 请求参数: {
     * 	"sysLoginName":"xxxxx",
     * 	"token":"yyyyyy"
     * }
     */
    val API_GET_NUMBER = "${HOST}/front/v1/dun/getAutoDialPhoneNumber"

    /**
     * 上传文件
     *
     * 请求参数: {
     *  "sysLoginName":"xxxxx",
     * 	"token":"yyyyyy",
     *  "mobile": "0123456787",
     *  "orderId": "ORDER-XXX",
     *  "userId": "userId",
     *  "product": "XXXX",
     *  "mobileType": "SELF",
     * 	file:xx.wav
     * }
     */
    val API_UPLOAD_FILE = "${HOST}/front/v1/dun/uploadCallRecordFile"

    /**
     * 保存通话信息
     *
     * 请求参数: {
     * 	"sysLoginName":"xxxxx",
     * 	"token":"yyyyyy",
     *  "mobile": "0123456787",
     *  "orderId": "ORDER-XXX",
     *  "userId": "userId",
     *  "product": "XXXX",
     *  "mobileType": "SELF",
     *  "url":"",
     *  "callRecord":{
     *
     *    }
     * }
     */
    val API_SAVE_NUMBER_RECORD = "${HOST}/front/v1/dun/saveAutoDialRecord"
}